package com.example.indenture.race.service;

import com.example.indenture.common.vo.Search;
import com.example.indenture.race.entity.Race;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Service
public interface RaceService {
    Integer insert(Race race);
    Integer existsAnotherRace(String name);
    Integer delete(Integer rid);
    Integer update(Race race);
    Race getRaceById(Integer rid);
    PageInfo<Race> getAllRaces(Search search);
    PageInfo<Race> getRacesByUser(Integer uid, Search search);
    Boolean isOutDate(LocalDateTime now, LocalDateTime it);
    List<Race> getListsByCompany(Integer cid);
    List<Race> getAllRaces();


}
